
new Promise(resolve => {
    setTimeout(() => {
        resolve('xiang')
    }, 200)
}).then((values)=>{
    console.log(values);
})


var promise1 = Promise.resolve(70);
var promise2 = 82;
var promise3 = new Promise(function (resolve) {
    setTimeout(resolve, 1000, 95); //1秒钟之后执行
});
Promise.all([promise1, promise2, promise3]).then(function (values) {
    console.log(values);
});// 输出数组: [ 70, 82, 95 ]